import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/readme',
        component: resolve => require(['@/components/common/home.vue'], resolve),
        children:[
            {
                path: '/',
                component: resolve => require(['@/components/page/index.vue'], resolve)
            },
        ]
    },
    {
        path: '/login',
        component: resolve => require(['@/components/page/login'], resolve)
    },
]
})
